package com.karry.commons;

import com.karry.commons.util.IPUtil;

/**
 * 创建人：田轩
 * 创建时间：2017/11/16
 * 描述：
 */
public abstract class Constants extends com.google.code.kaptcha.Constants  {
    public static String IP;
    /*威富通支付相关配置*/
    public final static String wft_version = "2.0";
    public final static String wft_charset = "UTF-8";
    public final static String wft_sign_type = "MD5";
    public final static String wft_key = "1c5af960b08abfedb4bcaa83";
    public final static String wft_req_url = "https://pay.swiftpass.cn/pay/gateway";
    static{
        IP = IPUtil.getRealIp();
    }

    public static String SK_USER = "user";
    public static String SK_JG = "organization";
    public static String SK_PAY_INFO = "paymentInfo";
    public static String SK_MENUS = "menus";
    public static String SK_TOP_MENUS = "topMenus";
    public static String SK_ALL_RESOURCES= "allResources";
    public static String SK_PAGE_SUB_RES_CODE= "pageSubResCode";

    public static String RK_CURR_MENU= "currMenu";
    public static String RK_CURR_PAGE= "currPage";
    public static String RK_PAGE_AUTHORIZE= "pageAuthorize";
    public static String SK_ELDER_ID = "elderId";
    public static String OPEN_ID = "openId";

    /**
     * 手机验证码位数
     */
    public static int PHONE_VCODE_LEN = 6;

    /**机构注册手机验证码*/
    public static String SK_REGIST_PHONE_CODE_KEY = "jg_zc_phone_code";
    /**机构注册手机验证码生成时间*/
    public static String SK_REGIST_PHONE_CODE_KEY_DATE = "jg_zc_phone_code_date";
    /**机构注册手机号码*/
    public static String SK_REGIST_PHONE_KEY = "jg_zc_phone";

    public static int meail_limit = 3; //套餐到期前三天视为即将到期


    /**
     * 修改密码验证码
     */
    /**机构注册手机验证码*/
    public static String JG_CHANGEPASSWORD_PHONE_CODE = "jg_changePassword_phone_code";
    /**机构注册手机验证码生成时间*/
    public static String JG_CHANGEPASSWORD_CODE_DATE = "jg_zc_phone_code_date";
    /**机构注册手机号码*/
    public static String JD_CHANGEPASSWORD_PHONE = "jg_zc_phone";
    /**机构ID*/
    public static String JD_CHANGEPASSWORD_ORGID = "jg_zc_orgId";


    public static String DB_AES_KEY = "FDS345545";
}

